import service from '@/api/etrade'
import service2 from '@/api/shopping'
import service3 from '@/api'

export function getAccountInfo(params) {
  return service({
    url:'/baidu/proxy2ds',
    apiUrl:'/json/sms/service/AccountShoppingService/getAccountShopping',
    method:'POST',
    data:params
  })
}

export function getCampaignFeed(params) {
  return service({
    url:'/baidu/proxy2ds',
    apiUrl:'/json/sms/service/CampaignShoppingService/getCampaignShopping',
    method:'POST',
    data:params
  })
}

export function deleteCampaignShopping(params) {
  return service({
    url:'/baidu/proxy2ds',
    apiUrl:'/json/sms/service/CampaignShoppingService/deleteCampaignShopping',
    method:'POST',
    data:params
  })
}

export function getProduct(params) {
  return service({
    url:'/baidu/proxy2ds',
    apiUrl:'/json/sms/service/CampaignShoppingService/getProduct',
    method:'POST',
    data:params
  })
}

export function getAnchor(params) {
  return service({
    url:'/baidu/proxy2ds',
    apiUrl:'/json/sms/service/CampaignShoppingService/getAnchor',
    method:'POST',
    data:params
  })
}

export function updateCampaignShopping(params) {
  return service({
    url: '/baidu/proxy2ds',
    apiUrl: '/json/sms/service/CampaignShoppingService/updateCampaignShopping',
    method: 'POST',
    data: params
  })
}

export function getAccountSummary(params) {
  return service2({
    url:'/report/getAccountSummary',
    method:'POST',
    data:params
  })
}

export function getAccountReportByDate(params) {
  return service2({
    url:'/report/getAccountReportByDate',
    method:'POST',
    data:params
  })
}

export function getAccountReportByDateGQ(params) {
  return service2({
    url: '/report/getAccountReportByDateGQ',
    method: 'POST',
    data: params
  })
}

export function getTuringCampaignCounts(params) {
  return service2({
    url: '/report/getTuringCampaignCounts',
    method: 'POST',
    data: params
  })
}

export function getCampaignReportToday(params) {
  return service2({
    url:'/report/getCampaignReportToday',
    method:'POST',
    data:params
  })
}

export function getCampaignReportToday2(params) {
  return service2({
    url:'/report/getCampaignReportYestoday',
    method:'POST',
    data:params
  })
}

export function getAllSummary(params) {
  return service2({
    url:'/report/getAllSummary',
    method:'POST',
    data:params
  })
}

export function getAllCampaignCounts(params) {
  return service2({
    url:'/report/getAllCampaignCounts',
    method:'POST',
    data:params
  })
}

export function getTplCampaignShopping(params) {
  return service2({
    url:'/baidu/getTplCampaignShopping',
    method:'POST',
    data:params
  })
}

export function oneClickCreate(params) {
  return service2({
    url:'/Batch/oneClickCreate',
    method:'POST',
    data:params
  })
}

export function asyncOneClickCreate(params) {
  return service2({
    url:'/Batch/asyncOneClickCreate',
    method:'POST',
    data:params
  })
}

export function getCostHigh(params) {
  return service2({
    url:'/report/getCostHigh',
    method:'POST',
    data:params
  })
}

export function getAmountTakeoff(params) {
  return service2({
    url:'/report/getAmountTakeoff',
    method:'POST',
    data:params
  })
}

export function getRecessions(params) {
  return service2({
    url:'/report/getRecessions',
    method:'POST',
    data:params
  })
}

export function getSilenceCampaign(params) {
  return service2({
    url:'/report/getSilenceCampaign',
    method:'POST',
    data:params
  })
}

export function copyCampaignToSelf(params) {
  return service2({
    url:'/baidu/copyCampaignToSelf',
    method:'POST',
    data:params
  })
}

export function getAccountHour(params) {
  return service2({
    url:'/report/getAccountHour',
    method:'POST',
    data:params
  })
}

export function getLastUpdateTime(params) {
  return service2({
    url:'/report/getLastUpdateTime',
    method:'POST',
    data:params
  })
}

export function getProductList(params) {
  return service3({
    url:'/index/getProductList',
    method:'POST',
    data:params
  })
}

export function chBdAccountProductName(params) {
  return service3({
    url: '/index/chBdAccountProductName',
    method: 'POST',
    data: params
  })
}

export function getOptionSelectProduct(params) {
  return service3({
    url: '/index/getOptionSelectProduct',
    method: 'POST',
    data: params
  })
}

export function getAllProductName(params) {
  return service3({
    url:'/index/getAllProductName',
    method:'POST',
    data:params
  })
}

export function addProduct(params) {
  return service3({
    url:'/index/addProduct',
    method:'POST',
    data:params
  })
}

export function editProduct(params) {
  return service3({
    url:'/index/editProduct',
    method:'POST',
    data:params
  })
}

export function delProduct(params) {
  return service3({
    url:'/index/delProduct',
    method:'POST',
    data:params
  })
}

export function updateCampaignPause(params) {
  return service2({
    url:'/Baidu/updateCampaignPause',
    method:'POST',
    data:params
  })
}

export function batchUpdateCampaignOcpcBid(params) {
  return service2({
    url: '/Baidu/batchUpdateCampaignOcpcBid',
    method: 'POST',
    data: params
  })
}

export function updateCampaignBudget(params){
  return service2({
    url:'/Baidu/updateCampaignBudget',
    method:'POST',
    data:params
  })
}

export function updateCampaignSchedule(params){
  return service2({
    url:'/Baidu/updateCampaignSchedule',
    method:'POST',
    data:params
  })
}

export function getAdjustedCampaigns(params){
  return service2({
    url:'/report/getAdjustedCampaigns',
    method:'POST',
    data:params
  })
}

export function getAccountCampaignAndVideoNumDays(params) {
  return service2({
    url: '/report/getAccountCampaignAndVideoNumDays',
    method: 'POST',
    data: params
  })
}

export function getAccountCampaignAndVideoNum(params) {
  return service2({
    url: '/report/getAccountCampaignAndVideoNum',
    method: 'POST',
    data: params
  })
}

export function batchRaiseOcpcBid(params) {
  return service2({
    url: '/aitask/batchRaiseOcpcBid',
    method: 'POST',
    data: params
  })
}

export function Aitasktasks(params) {
  return service2({
    url: '/Aitask/tasks',
    method: 'GET',
    params
  })
}

export function raiseOcpcBid(params) {
  return service2({
    url: '/aitask/raiseOcpcBid',
    method: 'GET',
    params
  })
}

export function getProductReportByDate(params) {
  return service2({
    url: '/report/getProductReportByDate',
    method: 'GET',
    params
  })
}

export function raiseOcpcBidList(params) {
  return service2({
    url: '/aitask/raiseOcpcBidList',
    method: 'GET',
    params
  })
}

export function strategies(params) {
  return service2({
    url: '/Aitask/strategies',
    method: 'GET',
    params
  })
}

export function AitaskaddTask(params) {
  return service2({
    url: '/Aitask/addTask',
    method: 'POST',
    data: params
  })
}

export function delTask(params) {
  return service2({
    url: '/Aitask/delTask',
    method: 'POST',
    data: params
  })
}

export function addStrategy(params) {
  return service2({
    url: '/Aitask/addStrategy',
    method: 'POST',
    data: params
  })
}

export function updateStrategy(params) {
  return service2({
    url: '/Aitask/updateStrategy',
    method: 'POST',
    data: params
  })
}

export function delStrategy(params) {
  return service2({
    url: '/Aitask/delStrategy',
    method: 'POST',
    data: params
  })
}

export function taskLog(params) {
  return service2({
    url: '/Aitask/taskLog',
    method: 'POST',
    data: params
  })
}

export function updateTask(params) {
  return service2({
    url: '/Aitask/updateTask',
    method: 'POST',
    data: params
  })
}

export function updateCampaignOcpcBid(params) {
  return service2({
    url: '/Baidu/updateCampaignOcpcBid',
    method: 'POST',
    data: params
  })
}

export function getLastSubmitTime(params) {
  return service2({
    url: '/Batch/getLastSubmitTime',
    method: 'POST',
    data: params
  })
}

export function stopQueueJob(params) {
  return service2({
    url: '/Batch/stopQueueJob',
    method: 'POST',
    data: params
  })
}

export function startTask(params) {
  return service({
    url: '/data/startTask',
    method: 'POST',
    data: params
  })
}

export function compensationReport(params) {
  return service2({
    url: '/report/compensationReport',
    method: 'POST',
    data: params
  })
}

export function compensationReportSelect(params) {
  return service2({
    url: '/report/compensationReportSelect',
    method: 'GET',
    params
  })
}

export function live_Minute_list(params) {
  return service2({
    url: '/live_Minute_Report/list',
    method: 'POST',
    data: params
  })
}

export function live_Minute_column(params) {
  return service2({
    url: '/live_Minute_Report/column',
    method: 'POST',
    data: params
  })
}

export function live_Minute_total(params) {
  return service2({
    url: '/live_Minute_Report/total',
    method: 'POST',
    data: params
  })
}

export function getCampaignReportTodayTG(params) {
  return service2({
    url: '/report/getCampaignReportTodayTG',
    method: 'POST',
    data: params
  })
}

export function getAccountReportByDateTG(params) {
  return service2({
    url: '/report/getAccountReportByDateTG',
    method: 'POST',
    data: params
  })
}

export function getAccountSummaryTG(params) {
  return service2({
    url: '/report/getAccountSummaryTG',
    method: 'POST',
    data: params
  })
}

export function hiddenAccount(params) {
  return service2({
    url: '/data/hiddenAccount',
    method: 'GET',
    data: params,
  })
}

export function live_Minute_analysis(params) {
  return service2({
    url: '/live_Minute_Report/analysis',
    method: 'POST',
    data: params
  })
}